
<%@ page import="mms.Person" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'person.label', default: 'Person')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.name.label" default="Name" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "name")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.sex.label" default="Sex" /></td>
                            
                            <td valign="top" class="value">${personInstance.sex?"男":"女"}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.education.label" default="Education" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "education")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.school.label" default="School" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "school")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.office.label" default="Office" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "office")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.age.label" default="Age" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "age")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.description.label" default="Description" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "description")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.cardID.label" default="Card ID" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "cardID")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.interest.label" default="Interest" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "interest")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.address.label" default="Address" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: personInstance, field: "address")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="person.multimedia.label" default="Multimedia" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                 
                                <div id="multimediafile">
                                 <g:each in="${personInstance.multimedia}" var="m">
                                    <div> 
									<g:link  controller="multimedia" action="full" id="${m.id}" target="_blank"><img src="${m.url}" border=0 alt="img"></g:link>
                                    </div> 
                                </g:each>
                                </div>
                                 
                            </td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${personInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
